define('../../html/demo/download/GillionDownloadModule', [
    'angular',
    'framework/download/GillionDownloadServiceConstructor'
], function (angular,GillionDownloadServiceConstructor) {
        var myModule = angular.module('GillionDownloadModule', [], ['$compileProvider', function ($compileProvider) {

    }]);
    myModule.controller('TestCtrl',["$scope","$http",function($scope,$http){
        var a = GillionDownloadServiceConstructor($http);
        $scope.download = function(){
            //console.log("XXX");
            //a.download($scope.url);

                var elemIF = document.createElement("iframe");
                elemIF.src = $scope.url;
                elemIF.style.display = "none";
                document.body.appendChild(elemIF);

        }
    }]);
    return myModule;
});